package com.hancai.mapper;

import com.hancai.model.TBarrage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TBarrageMapper {
    int deleteByPrimaryKey(Integer id);

    TBarrage selectByPrimaryKey(Integer id);


    List<TBarrage> selectBarrageByPage(String keyword);

    void changeStatus(@Param(value="id") Integer id, @Param("status") Integer status);

    int deleteByIds(List<String> idList);

    void saveBarrage(List<TBarrage> barrageList);
}
